Views Collection

The Views Collection is a collection of views for a report. A View Object, is created when a report is first generated and displayed in the Preview window. If a user drills-down on summary values or on graph data, additional View objects are created as additional drill-down views appear in the Preview window. Each Preview tab that appears in the Preview window represents a separate View object. Only the View object for the currently active Preview tab can be manipulated at runtime.

The Views collection contains all View objects for the report. However, since only the currently active view can be accessed, the Count property will always contain a value of 1. The currently active View object can be accessed by passing 1 to the Item property. For example:

Set activeView = viewsCollection.Item(1)

Views Collection Properties

Property Description Read/Write

Application

Returns a reference to the Application Object, that this object is associated with.

Read only

Count

Returns the number of views in the collection. Because only one view is supported (preview), this number should always be 1.

Read only

Item

Returns View Object. Item has an index parameter that is a numeric, 1-based index (that is, Item (1) returns the main view). Because only a single View object can be accessed at any time, the currently active view, any index other than 1 will return an error.

Read only

Parent

Reference to the Parent object Window Object).

Read only

Report

Reference to Report Object.

Read only

Remarks

Instead of using the Item property as shown, you can reference a view directly (for example, Views (1)).



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com